cmake_minimum_required(VERSION 3.19.8)
PROJECT(idc_beidou C)

include_directories(./ ./service ./ubus ./utils ./comm)

add_subdirectory(./utils)
add_subdirectory(./service)
add_subdirectory(./ubus)
aux_source_directory(. SRCS)

set(OBJ_LIST cjson uci pthread ubus ubox service idc_ubus utils )

add_executable(idc_beidou ${SRCS})

target_link_libraries(idc_beidou ${OBJ_LIST})
INSTALL(TARGETS idc_beidou RUNTIME DESTINATION bin)
